package com.jinjia.ordersys.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description:
 * @Author: fenghouzhi
 * @Date: 3:28 PM 2018/10/11
 */
@Data
@Table(name = "t_person")
@ApiModel(value = "业务员参数对象")
public class Person implements Serializable {

  private static final long serialVersionUID = -4869594085374385813L;

  @Id
  @GeneratedValue(generator = "JDBC")
  @Column(name = "id")
  @ApiModelProperty(value = "personId")
  private Long id;

  @Column(name = "open_id")
  @ApiModelProperty(value = "openid")
  private String openId;

  @Column(name = "name")
  @ApiModelProperty(value = "业务员姓名", required = true)
  private String name;

  @Column(name = "phone")
  @ApiModelProperty(value = "业务员手机号", required = true)
  private String phone;

  @Column(name = "person_type")
  @ApiModelProperty(value = "业务员角色类型", required = true, allowableValues = "0")
  private String departmentType;

  @Column(name = "bind_status")
  @ApiModelProperty(value = "绑定状态")
  private Integer bindStatus;

  @Column(name = "enable_status")
  @ApiModelProperty(value = "是否启用")
  private Integer enableStatus;

  @Column(name = "delete_flag")
  @ApiModelProperty(value = "删除标识")
  private Integer deleteFlag;

}